package com.hsmw.api.service;

import com.hsmw.api.mapper.HsmwPictureMapper;
import com.hsmw.api.mapper.HsmwPushInfoMapper;
import com.hsmw.common.base.BaseService;
import com.hsmw.domain.HsmwPicture;
import com.hsmw.domain.HsmwPushInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;

@Service
@Transactional(isolation = Isolation.REPEATABLE_READ, propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class HsmwPushInfoService extends BaseService<HsmwPushInfoMapper, HsmwPushInfo> {

    @Autowired
    private  HsmwPushInfoMapper hsmwPushInfoMapper;

    public void updateDispatchPushInfo(HashMap param){

        hsmwPushInfoMapper.updateDispatchPushInfo(param);

    }

    public void updateForemanPushInfo(HashMap param){

        hsmwPushInfoMapper.updateForemanPushInfo(param);

    }


}
